<?php if (isset($editprof_error)) { ?><?php echo '<span style="color:red"><strong>', $editprof_error, '</strong></span>' ?><?php } ?>


<div id="proflook">
<form action="index.php?act=editprofile" method="post"><table cellpadding="0" cellspacing="0">
		<tr><td id="login">	<input type="password" size="12" maxlength="12" name="password" />
	<br />Password<br /><br />	</td><td id="login" width="130">	<input type="text" value="<?php $editnick = $user['nick']; echo $editnick ?>" name="nick" maxlength="12" size="12">
	<br />Online Mii Name<br /><br />
	</td><td id="login">	<input type="text" value="<?php $editcode = $user['gamecode']; echo $editcode ?>" name="gamecode" maxlength="12" size="12">
	<br />Friend Code<br /><br />
	</td></tr><tr>
	<td id="login" width="130" valign="top">		<select name="character">
			<option value="mario" <? if ($user['racer'] == 'mario') { echo 'selected="selected"'; } ?>>Mario</option>
			<option value="luigi" <? if ($user['racer'] == 'luigi') { echo 'selected="selected"'; } ?>>Luigi</option>
			<option value="peach" <? if ($user['racer'] == 'peach') { echo 'selected="selected"'; } ?>>Peach</option>
			<option value="bowser" <? if ($user['racer'] == 'bowser') { echo 'selected="selected"'; } ?>>Bowser</option>
			<option value="wario" <? if ($user['racer'] == 'wario') { echo 'selected="selected"'; } ?>>Wario</option>
			<option value="waluigi" <? if ($user['racer'] == 'waluigi') { echo 'selected="selected"'; } ?>>Waluigi</option>
			<option value="yoshi" <? if ($user['racer'] == 'yoshi') { echo 'selected="selected"'; } ?>>Yoshi</option>
			<option value="daisy" <? if ($user['racer'] == 'daisy') { echo 'selected="selected"'; } ?>>Daisy</option>
			<option value="kong" <? if ($user['racer'] == 'kong') { echo 'selected="selected"'; } ?>>Donkey Kong</option>
			<option value="diddy" <? if ($user['racer'] == 'diddy') { echo 'selected="selected"'; } ?>>Diddy Kong</option>
			<option value="babydaisy" <? if ($user['racer'] == 'babydaisy') { echo 'selected="selected"'; } ?>>Baby Daisy</option>
			<option value="babyluigi" <? if ($user['racer'] == 'babyluigi') { echo 'selected="selected"'; } ?>>Baby Luigi</option>
			<option value="babymario" <? if ($user['racer'] == 'babymario') { echo 'selected="selected"'; } ?>>Baby Mario</option>
			<option value="babypeach" <? if ($user['racer'] == 'babypeach') { echo 'selected="selected"'; } ?>>Baby Peach</option>
			<option value="birdo" <? if ($user['racer'] == 'birdo') { echo 'selected="selected"'; } ?>>Birdo</option>
			<option value="kingboo" <? if ($user['racer'] == 'kingboo') { echo 'selected="selected"'; } ?>>King Boo</option>
			<option value="bowserjr" <? if ($user['racer'] == 'bowserjr') { echo 'selected="selected"'; } ?>>Bowser jr.</option>
			<option value="funky" <? if ($user['racer'] == 'funky') { echo 'selected="selected"'; } ?>>Funky Kong</option>
			<option value="drybones" <? if ($user['racer'] == 'drybones') { echo 'selected="selected"'; } ?>>Dry Bones</option>
			<option value="drybowser" <? if ($user['racer'] == 'drybowser') { echo 'selected="selected"'; } ?>>Dry Bowser</option>
			<option value="rosalina" <? if ($user['racer'] == 'rosalina') { echo 'selected="selected"'; } ?>>Rosalina</option>
			<option value="toad" <? if ($user['racer'] == 'toad') { echo 'selected="selected"'; } ?>>Toad</option>
			<option value="toadette" <? if ($user['racer'] == 'toadette') { echo 'selected="selected"'; } ?>>Toadette</option>
            <option value="koopatroopa" <? if ($user['racer'] == 'koopatroopa') { echo 'selected="selected"'; } ?>>Koopa Troopa</option>		</select><br />Favorite Racer<br />
		</td><td id="login">	
			<input type="text" value="<?php $editrace = $user['racevr']; echo $editrace ?>" name="racevr" maxlength="4" size="12">
			<br />Racing VR<br /><br />
		</td><td id="login">	
			<input type="text" value="<?php $editbattle = $user['battlevr']; echo $editbattle ?>" name="battlevr" maxlength="4" size="12">
			<br />Battle VR<br /><br />
		</td></tr>
	</table>
	
	
</div><br /><table width="385px"><tr><td>
<span style="font-size:10pt"><?php echo 'Wii Console Number: ', $user['username']; ?></span></td><td><div align="right"><input type="submit" name="submit" value="  Update  " /></div></td></tr></table>
</form>

						